# encoding: utf-8
""" 
@version: v1.0 
@author: autumner 
@license: Apache Licence  
@contact: 18322313385@163.com 
@site:  
@software: PyCharm 
@file: drawFivestar.py 
@time: 2018/8/10 15:59
"""
'''
利用turtle创建五角星
'''
import turtle as t

t.hideturtle()
t.up()
t.fillcolor('red')
t.pencolor('red')
t.begin_fill()
while True:
    t.forward(200)
    t.rt(144)
    if abs(t.pos()) < 1:
        break
t.end_fill()
t.done()
